import Vue from 'vue'
import Router from 'vue-router'
import TaskDateList from '@/components/TaskDateList'
import TaskCronList from '@/components/TaskCronList'

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/TaskDateList',
      name: 'TaskDateList',
      component: TaskDateList
    },
    {
      path: '/2',
      name: 'TaskCronList',
      component: TaskCronList,
      children: [
        // 当 /user/:id 匹配成功，
        // UserHome 会被渲染在 User 的 <router-view> 中
        {
          path: '2',
          component: TaskDateList
        }
        // ...其他子路由
      ]
    }
  ]
})
